package com.rw.pojo;

public class TestSubA implements FatherTest{
    private Integer id;
    private String name;
    private Integer age;
    private Boolean flag;

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public TestSubA(){
        System.out.println("空参构造函数调用");
    }
    public TestSubA(Integer sid, String name, Integer age) {
        this.id = sid;
        this.name = name;
        this.age = age;
    }
    public TestSubA(Integer id,Integer age, String name) {
        this.id = id;
        this.name = name;
        this.age = age;
    }
    public TestSubA(Integer id, String name) {
        this.id = id;
        this.name = name;
    }
    public TestSubA(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setSex(Integer sex){
        System.out.println("调用了sex");
    }

    @Override
    public void test() {
        System.out.println("子类testA");
    }

//    @Override
//    public String toString() {
//        return "TestSubA{" +
//                "id=" + id +
//                ", name='" + name + '\'' +
//                ", age=" + age +
//                ", flag=" + flag +
//                '}';
//    }
}
